	**************************************************************
	*** MASTER SCRIPT * Estepa, Jorrat, Orozco and Rascón 2025 ***
	**************************************************************

	* This master script imports stata files (raw data), processes, cleans and combines them into 
	* Intermediate files (processed data), and eventually produces the output tables and figures used in the paper

	* Stata version 18 MP for Window system

	* Install required packages (internet connection required)
	capture ssc install outreg, replace
	capture ssc install outreg2, replace
	capture ssc install estout, replace
	capture ssc install grc1leg2, replace
	capture ssc install cibar, replace
	
	* Set mat size
	set matsize 10000

	* Set graph scheme
	set scheme stcolor

	/* PERSONALIZE DIRECTORY PATH (TO BE CHANGED BY REVIEWER SO THAT IT MATCHES THE DIRECTORY OF THE REPRODUCIBILITY PACKAGE) */
	global directory "C:\Users\Diego\Dropbox\Beans & sliders\8. replication\ReproducibilityPackage"
	
	/* SET DIRECTORY (NOT TO BE CHANGED) */
	cd "$directory"

	/* FOLDER CONTAINING THE OUTPUT FILES (NOT TO BE CHANGED)*/
	
	capture mkdir 03_Output
	
	global output "03_Output"


	/* SCRIPTS FOR RAW DATA PROCESSING and CLEANING: */
	
	clear all

	* --- STEP 1: RAW DATA CLEANING ---
	* This script takes the raw data (in .dta format), cleans each study,
	* and generates a single dataset containing all studies.
	
	do 00_Scripts/Data_cleaning.do

	* --- STEP 2: ANALYSIS (TABLES AND FIGURES) ---
	* This script generates all the tables and figures of the manuscript,
	* following the exact order in which they appear in the paper

	do 00_Scripts/Do_analysis.do





